package com.ang.juc.n1;

public class Test1 {
    static class MyThread extends Thread{
        @Override
        public void run() {
            System.out.println("MyThread启动..."+Thread.currentThread().getName());
        }
    }

    public static void main(String[] args) {
        MyThread myThread1 = new MyThread();
        myThread1.setName("thread1");
        myThread1.start();
        MyThread myThread2 = new MyThread();
        myThread2.setName("thread2");
        myThread2.start();
    }
}
